package com.java8.predicatetest;

import java.util.Comparator;
import java.util.Date;
import java.util.function.Predicate;

/**
 * @Author HBZ
 * @Date 2020/8/5 11:10
 * @Description
 */
public class PredicateTest4 {
    public static void main(String[] args) {
        PredicateTest4 predicateTest4 = new PredicateTest4();
        System.out.println(predicateTest4.isEqual("test").test(new Date()));
    }

    public Predicate<Date> isEqual(Object object) {
        return Predicate.isEqual(object);
    }
}
